package bankTest;

import static org.junit.Assert.*;
import java.io.IOException;
import org.junit.Before;
import org.junit.Test;

public class UserAccountTest {

	UserAccount ua;
	@Before
	public void testUserAccount() {
		try {
			ua = new UserAccount();
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	@Test
	public void testLogin() {
		User u  = new User("zhangsan","123456");
		try {
			ua.login(u);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
	@Test
	public void testCheckMoney() {
		User u  = new User("zhangsan","123456");
		try {
			ua.checkMoney(u);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

}
